package com.dyh.quickdemo.demos.collectors;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/*
@Author=Joey Wheeler
@Date=2020/10/14 17:12
*/
@Service
public class HelloFacade {

    @Autowired
    private HelloRaw helloRaw;

    public void hello(String hello){
        JSONObject jo = new JSONObject();
        jo.put("str",hello);
        helloRaw.hello(jo);
    }

    public void hello(String hello,long id){
        JSONObject jo = new JSONObject();
        jo.put("str",hello);
        jo.put("id",id);
        helloRaw.hello(jo);
    }

}
